package com.kevinwu;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

public class DubboPureMainTwo {

    public static void main(String[] args) throws Exception {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ProviderConfiguration.class);
        context.start();

        System.in.read();
    }


    @Configuration
    @PropertySource("classpath:/dubbo-provider.properties")
    @ComponentScan("com.kevinwu.service.impl")
    @EnableDubbo
    static class ProviderConfiguration {

    }
}
